/*
 * @description:
 * @Author: lal
 * @Date: 2020-05-26 16:30:54
 * @LastEditors: lal
 * @LastEditTime: 2020-05-28 17:29:20
 */

import { Menu } from "electron";

function createMenu(menuOptions = null) {
  let menu = menuOptions;
  if (menuOptions) {
    menu = Menu.buildFromTemplate(menuOptions);
  }
  Menu.setApplicationMenu(menu);
}

export default createMenu;
